package m.jclecai.com.base;

import android.os.Build;
import android.os.Bundle;
import android.view.WindowManager;

import butterknife.ButterKnife;
import m.jclecai.com.dialog.DialogUtils;


/**
 * Created by hp on 2017/3/14.
 */

public abstract class SuperBaseActivity extends ISuperBaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mWaitingDialog = new DialogUtils(this);
        setContentView(getContentView());
        ButterKnife.bind(this);
        //requestWindowFeature(Window.FEATURE_NO_TITLE); // 去掉标题栏
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            // 透明状态栏
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            // 透明导航栏
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
        }
        initView();
        initData();
    }

    @Override
    protected void leftOptionText(String text, int drawable) {

    }

    @Override
    protected void rightOptionText(String text, int drawable) {

    }

    @Override
    protected void setTitle(String text, int drawable) {

    }

    @Override
    protected int getStatusBarColor() {
        return -1;
    }

    @Override
    public void initListener() {

    }
}
